
import axios, {Axios} from 'axios'
const context = "/ucenter"

/**
 * 获取 FmsMaterialCategory 分页列表
*/
export function getFmsMaterialCategoryPagination(data: any) {
  return axios.get(`${context}/fmsMaterialCategory/pagination`, { params: data });
}


/**
 * 获取 FmsMaterialCategory 所有数据
*/
export function getFmsMaterialCategoryAllList(data: any) {
  return axios.get(`${context}/fmsMaterialCategory/all`, { params: data });
}


/**
 * 获取 FmsMaterialCategory 详情
*/
export function getFmsMaterialCategoryDetailById(id: any) {
  return axios.get(`${context}/fmsMaterialCategory/${id}`, { params:{id} });
}


/**
 * 新增 FmsMaterialCategory
*/
export function addFmsMaterialCategory(data: any) {
  return axios.post(`${context}/fmsMaterialCategory`, data);
}

/**
 * 修改 FmsMaterialCategory
*/
export function updateFmsMaterialCategory(data: any) {
  return axios.put(`${context}/fmsMaterialCategory`, data);
}

/**
 * 删除 FmsMaterialCategory
*/
export function batchRemoveFmsMaterialCategory(data: any) {
  return axios.post(`${context}/fmsMaterialCategory/batchRemove`, data);
}

    